#ifndef __MW_CPP_EXPLOSION_H__
#define __MW_CPP_EXPLOSION_H__

#include "cocos2d.h"
USING_NS_CC;

class Explosion : public cocos2d::Sprite
{
    
private:
    int         m_tmpWidth=0;
    int         m_tmpHeight=0;
    bool      m_active = true;
    Animation* m_animation = nullptr;
    
public:
    CREATE_FUNC(Explosion);
    Explosion();
    ~Explosion(void);

    virtual bool init();
    void play();
    void destroy();
    static void preSet();
    static void sharedExplosion();

    static Explosion* getOrCreateExplosion();
    
};
#endif /* defined(__MW_CPP_EXPLOSION_H__) */